package list.homework2;

public class Manager extends Person{

    private int money;

    @Override
    public void work() {
        System.out.println("工号:"+getId()+","+getName()+"经理"+"底薪"+getPrice()+"每次奖金"+money);
    }

    public Manager(int money) {
        this.money = money;
    }

    public Manager(String name, String id, int price, int money) {
        super(name, id, price);
        this.money = money;
    }
}
